package com.duowei.diandan.db.dao;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;

import com.duowei.diandan.db.entry.Jgsz;

import java.util.List;

@Dao
public interface JgszDao {

    @Query("SELECT * FROM jgsz LIMIT 1")
    Jgsz findOne();

    @Insert
    void insert(List<Jgsz> list);

    @Query("DELETE FROM jgsz")
    void deleteAll();
}
